package com.xdf.ecommerce.dao;

import com.mybatisflex.core.BaseMapper;
import com.xdf.ecommerce.entity.EcommerceAddress;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chanchaw
 * @create 2025-10-25 15:50
 */
@Repository
public interface EcommerceAddressDao extends BaseMapper<EcommerceAddress> {
    @Select("select * from t_ecommerce_address where user_id = #{userId}")
    List<EcommerceAddress> findAllByUserId(@Param("userId") Long userId);
}
